<template>
  <div class="site-footer">
    <div class="container">
      <div class="footer-links row">
        <div v-for="(col, index) in links" :key="index" class="col-links col-md-3">
          <h4>{{ col.title }}</h4>
          <ul>
            <li v-for="(link, i) in col.links" :key="i">
              <a :href="link.url">{{ link.text }}</a>
            </li>
          </ul>
        </div>
      </div>
    </div>
    <div class="footer-info">
      <p class="text-muted">{{ footerInfo.recordNumber }}</p>
    </div>
  </div>
</template>
  
<script>
import footer from '@/assets/data/footer.json';

export default {
  data() {
    return {
      links: footer.links,
      footerInfo: footer.footerInfo
    };
  }
};
</script>
  
<style scoped>
.site-footer {
  background-color: #f5f5f5;
  padding: 20px 0;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  flex-direction: column;
  text-align: center;
  height: 200px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.col-links {
  flex-basis: 25%;
  max-width: 25%;
}

.col-links h4 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 20px;
  color: #333;
}

.col-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.col-links ul li {
  line-height: 28px;
  margin-bottom: 10px;
}

.col-links ul li a {
  color: #666;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
}

.col-links ul li a:hover {
  color: #ff6700;
}

.footer-info {
  text-align: center;
  padding-bottom: 20px;
}

.text-muted {
  color: #999;
  font-size: 12px;
  margin-top: 50px;
}

@media (max-width: 767px) {
  .col-links {
    flex-basis: 50%;
    max-width: 50%;
  }
}
</style>
